<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class Entry extends Controller
{
    public function __construct()
    {
        //调用自己定义的中间件
        $this->middleware('AdminLogin');
    }

    /**
     *
     * 后台首页
     *
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function index(){
        //加载后台首页模板
        return view('admin.entry.index');
    }

}
